import request from '@/utils/request'
// 左侧库
export function delLib(params) {
  return request({
    url: '/cloudcut-api/material/library-delete',
    method: 'delete',
    params
  })
}
export function getLibList(params) {
  return request({
    url: '/cloudcut-api/material/library-list',
    method: 'get',
    params
  })
}
export function addLib(data) {
  return request({
    url: '/cloudcut-api/material/library-add',
    method: 'post',
    data
  })
}
export function updateLib(data) {
  return request({
    url: '/cloudcut-api/material/library-edit',
    method: 'post',
    data
  })
}
// 文件夹
export function eGetCategoryList(params) {
  return request({
    url: '/cloudcut-api/material/category-list',
    method: 'get',
    params
  })
}

export function eAddCategory(data) {
  return request({
    url: '/cloudcut-api/material/category-add',
    method: 'post',
    data
  })
}
export function eUpdateCategory(data) {
  return request({
    url: '/cloudcut-api/material/category-edit',
    method: 'post',
    data
  })
}
export function eDelCategory(params) {
  return request({
    url: '/cloudcut-api/material/category-delete',
    method: 'delete',
    params
  })
}
// 视频
export function getList(params) {
  return request({
    url: '/cloudcut-api/material/list',
    method: 'get',
    params
  })
}

export function updateName(data) {
  return request({
    url: '/cloudcut-api/material/materials-edit-name',
    method: 'post',
    data
  })
}
export function cutVideo(data) {
  return request({
    url: '/cloudcut-api/material/materials-edit-cut',
    method: 'post',
    data,
    params: data
  })
}
export function delItem(params) {
  return request({
    url: '/cloudcut-api/material/materials-delete',
    method: 'delete',
    params
  })
}
